package com.example.cpl.gjc;

import android.annotation.SuppressLint;
import android.content.Intent;
import android.support.v7.app.AppCompatActivity;
import android.os.Bundle;
import android.view.View;
import android.view.WindowManager;
import android.widget.Button;
import android.widget.ImageButton;


public class first extends AppCompatActivity {

    private Button btn_1;


    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_first);
        getWindow().setFlags(WindowManager.LayoutParams.FLAG_FULLSCREEN,
        WindowManager.LayoutParams.FLAG_FULLSCREEN);

        btn_1=(Button)findViewById(R.id.btn_1);


        btn_1.setOnClickListener(new View.OnClickListener() {    //设置按钮监听
                                               @SuppressLint("PrivateResource")
                                               @Override
                                               public void onClick(View view) {
                                                   Intent intent = new Intent(first.this, teach_center.class);
                                                   startActivity(intent);
                                                   overridePendingTransition(R.anim.abc_slide_in_bottom, R.anim.abc_slide_out_bottom);
                                               }
                                           }
        );




    }
}